Developer Documentation
PATH  WebObjects 4.5 Documentation > Getting Started With Direct to Java Client

   

Creating a D2WComponent

You create a D2WComponent the way you'd create any other component for a regular WebObjects application.

  1. In your project, select the WebComponents suitcase.

  2. Choose File New in Project. The New File panel opens. Ensure that the Web Components suitcase is open.

  3. Type StudioSelect for the name of the component.

    A good naming convention for D2WComponents that provide frozen XML is to use the entity name concatenated with the task name. By doing so, components are grouped in Project Builder by entity name.

  4. Click OK.

    The WebObjects Component Wizard window opens.

  5. Choose None for "Available Assistance" and Java for the Language, and click Finish.

  6. Change the component's superclass to D2WComponent.

    Edit the StudioSelect.java file. First change the component's superclass from WOComponent to D2WComponent. Since D2WComponent is provided by the directtoweb package, you also need to add an import line:

    import com.apple.yellow.directtoweb.*;


© 1999 Apple Computer, Inc. – (Draft. Last updated 05 Jan 00)